home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / WINSOCK.PAK / DLGADDR.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  972b  |  41 lines

  1. #if !defined(DLGADDR_H)
  2. #define DLGADDR_H
  3.  
  4. #if !defined(OWL_DEFS_H)
  5. # include <owl/defs.h>
  6. #endif
  7. #if !defined(OWL_EDIT_H)
  8. # include <owl/edit.h>
  9. #endif
  10. #if !defined(OWL_BUTTON_H)
  11. # include <owl/button.h>
  12. #endif
  13. #if !defined(OWL_WINSOCK_H)
  14. # include <owl/winsock.h>
  15. #endif
  16.  
  17. #include "sockdemo.rh" 
  18.  
  19. class DlgConvertAddress : public TDialog {
  20.   public:
  21.    enum    nState {nIdle, nWaitingForAddress} myPresentState;
  22.  
  23.    TEdit   *editNameCtrl;
  24.    TEdit   *editAddressCtrl;
  25.    TStatic *staticStatus;
  26.    TButton *btnConvert;
  27.    bool    bBusyDoingLookup;
  28.    THostInfoManager myHostInfoManager;
  29.  
  30.    DlgConvertAddress(TWindow *parent, TResId resId = IDD_CONVERT_ADDRESS, TModule *module = 0);
  31.    void SetupWindow();
  32.    void CmBtnConvert();
  33.    void CmOk();
  34.    void GoToIdleState();
  35.    void GoToWaitingForAddressState();
  36.    LRESULT DoNotification(WPARAM, LPARAM lParam);
  37.    DECLARE_RESPONSE_TABLE(DlgConvertAddress);
  38. };
  39.  
  40. #endif  // DLGADDR_H
  41.